<template>
  <div class="">
    page a {{$store.state.money.money}}
    <button @click="add(param)">增加</button>
    <button @click="reduce">减少</button>
  </div>
</template>

<script>
import { mapActions } from 'vuex'
export default {
  data() {
    return {
      param: 3
    }
  },
  methods: mapActions('money', ['add', 'reduce'])
}
</script>

<style scoped>

</style>
